<template>
	<div v-if="!disabled" style="text-align: center;">
		<TinyLink type="success" size="mini" @click="click" :disabled="disabled">文本解析成列表</TinyLink>
	</div>
</template>
<script setup>
import strToList from "@/lui/strToList";
import {TinyLink} from '@opentiny/vue'
import {ref} from "vue";
const emit = defineEmits(['click'])
const props = defineProps({
  inject: {type: Boolean, default: false},
  disabled: {type: Boolean, default: false},
})
const model = ref()
const fApi = ref({})
const click = () => {
  strToList({fApi: fApi.value})
}


const setApi = (api) => {
  fApi.value = api
}

defineExpose({  setApi})
</script>